package hk.linkcredit.awardservice.award.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import hk.linkcredit.awardservice.common.constant.ActivityTypeEnum;
import hk.linkcredit.awardservice.award.domain.vo.ActivityAggregateVo;
import hk.linkcredit.awardservice.award.domain.entity.AwardActivity;

/**
 * 奖励活动Service接口
 *
 * @author african-loan
 * @date 2022-06-24
 */
public interface IAwardActivityService extends IService<AwardActivity>{
    /**
     * 查询奖励活动
     *
     * @param id 奖励活动ID
     * @return 奖励活动
     */
    public AwardActivity selectAwardActivityById(Long id);

    /**
     * 查询奖励活动列表
     *
     * @param awardActivity 奖励活动
     * @return 奖励活动集合
     */
    public List<AwardActivity> selectAwardActivityList(AwardActivity awardActivity);

    /**
     * 新增奖励活动
     *
     * @param awardActivity 奖励活动
     * @return 结果
     */
    public int insertAwardActivity(AwardActivity awardActivity);

    /**
     * 修改奖励活动
     *
     * @param awardActivity 奖励活动
     * @return 结果
     */
    public int updateAwardActivity(AwardActivity awardActivity);

    /**
     * 批量删除奖励活动
     *
     * @param ids 需要删除的奖励活动ID
     * @return 结果
     */
    public int deleteAwardActivityByIds(Long[] ids);

    /**
     * 删除奖励活动信息
     *
     * @param id 奖励活动ID
     * @return 结果
     */
    public int deleteAwardActivityById(Long id);

    AwardActivity getActivity(ActivityTypeEnum activityTypeEnum);

    ActivityAggregateVo getDistributionActivity();

}
